package cn.drew.house.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 房屋列表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HousingInformation {
   private Long hid;
   private String htitlex; //房屋标题
   private BigDecimal hprice; //房屋金额
   private BigDecimal harea;  //房屋面积
   private String hyears;  //房屋年代
   private Integer htype;  //1:电梯、3：步梯、5：别墅、7：公寓
   private String hquartersName; //小区名字
   private Integer hstatus;   //房屋状态：1:已出租、2：未出租
   @JsonFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒")
   private Date hcreateTime;  //房屋信息发布时间

   private ContractInformation contractInformation;

}
